package cn.tedu.lucky.draw.server.repository;

import cn.tedu.lucky.draw.server.protocol.po.Prize;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PrizeRepository extends JpaRepository<Prize, Long> {

    List<Prize> findAllByNameAndStatus(String name, Integer status);

    List<Prize> findByStatusEquals(Integer stauts);

    List<Prize> findByIdNotInAndStatusEquals(List<Long> excludedIds, Integer stauts);
}
